<?php
/**
 * @file test008.php
 * @package test
 * @subpackage 
 * @version $id: 0.1 utf8 <Fri Oct 30 00:43:49 CST 2009>$
 * @author LD King <kldscs@gmail.com>
 * @copyright Copyright (c) 2007 - 2009 MiFunny China Inc. (http://mifunny.info)
 * @desc
 *   测试PHP的MD5函数，JS的MD5函数相同与否
 *   Linux命令 php -r 'echo md5("123456");'
 *             echo -n '123456' | md5sum
 *   MySQL     SELECT MD5('123456');
 *   OutPut: 'e10adc3949ba59abbe56e057f20f883e'  
 */

echo "PHP: md5('123456') = '".md5('123456')."'<br />\t\n";
?>
<script language="javascript" type="text/javascript" src="js/encrypt/md5.js"></script>
<script type="text/javascript">
document.write("<p>JavaScript: MD5('123456') = '"+hex_md5('123456')+"'<br />");
</script>

